# -*- coding: utf-8 -*-
"""
Created on Fri Feb 22 12:25:31 2013

@author: eaponte
"""

# -*- coding: utf-8 -*-
"""
Created on Fri Feb 22 10:34:01 2013

@author: eaponte
"""

import re
f = '''eyelink_playback_start 
eyelink_playback_stop
'''

funs = re.findall('\w+',f)

conts = '''
"""
Created on Tue Feb 19 14:55:43 2013

@author: aponteeduarddo@gmail.com
Copyright Eduardo Aponte 2013.
"""

from mex_binder import binder_py

mx_{0} = binder_py('mx_{0}')
mx_{0}.mx_c.headers = ['<eyelink.h>','"mex.h"']
mx_{0}.bindo += []
mx_{0}.mx_c.code = \\
"""
"""

mx_{0}.mx_c.mdoc = \\
"""function [ ] = mx_{0}( )
%MX_{1}
"""
mx_{0}.write_c()
mx_{0}.write_m()
mx_{0}.compile()
mx_{0}.write_sh()

'''

for f in funs:
    with open('./src/playback/mx_{0}.py'.format(f),'w') as ftmp:
        ftmp.write(conts.format(f,f.upper()))
        

